package com.betterwood.dragon.service;

import java.util.List;

import com.betterwood.dragon.dao.RecordDao;
import com.betterwood.dragon.dao.SiteDao;
import com.betterwood.dragon.entity.Record;

import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;

@Service(value = "recordService")
@RequiredArgsConstructor
public class RecordService {
    private final RecordDao recordDao;

    public Record insert(Record record) {
        return recordDao.save(record);
    }

    public List<Record> findAll() {
        return recordDao.findAll();
    }

    public List<Record> findByQuery(Record record) {
        return recordDao.listByQuery(record);
    }

    // public List<Site> findAll() {
    // return siteDao.findAll();
    // }

    // public Site findById(String slaveId) {
    // return siteDao.getOneById(slaveId);
    // }

    // public Site save(Site site) {
    // return siteDao.save(site);
    // }

    // public Keyword findById(String id) {
    // return keywordDao.getOneById(id);
    // }
}